﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="_Default" MetaKeywords="kladionica, formula 1, f1, f1 kladionica" MetaDescription="F1 kladionica" CodeBehind="Default.aspx.cs" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>F1 Kladionica</title>
    <link href="CSS/Glavni.css" rel="stylesheet" />
</head>
<body style="height: 424px">
    <div id="header">F1 kladionica</div>

    <form id="form1" runat="server">
        <div id="leviDiv">
            <div id="prijaviSe">
                <asp:Label ID="txtIDLabela" runat="server" Text="Unesite vasu sifru:"></asp:Label><br />
                <asp:TextBox ID="txtID" runat="server"></asp:TextBox>
                <asp:Button ID="btnPrijaviSe" runat="server" Text="Prijavi se" OnClick="btnPrijaviSe_Click" />
                <br />
            </div>
            <div id="divLabelaImeIPronalazak" runat="server">
                <asp:Panel ID="statusKladionicara" runat="server" Visible="false">

                    <asp:Label ID="labelaImeKladionicara" runat="server" Height="30px" Width="200px"></asp:Label>
                    <asp:Label ID="labelaNijePronadjenUBazi" runat="server" Height="30px" Width="200px"></asp:Label>

                </asp:Panel>
            </div>
            <asp:Panel ID="panelGlavni" runat="server" Visible="true">

                <asp:Label ID="labelaIzborVozaca" runat="server" Text="Izbor vozaca:"></asp:Label><br />
                <div id="izborVozaca">

                    <asp:DropDownList ID="ddlVozac1" runat="server" Height="25px" Width="180px" Enabled="false" AutoPostBack="true"></asp:DropDownList>
                    <br />
                    <asp:DropDownList ID="ddlVozac2" runat="server" Height="25px" Width="180px" Enabled="false" AutoPostBack="true"></asp:DropDownList>
                    <br />
                    <asp:DropDownList ID="ddlVozac3" runat="server" Height="25px" Width="180px" Enabled="false" AutoPostBack="true"></asp:DropDownList>
                    <br />
                    <asp:DropDownList ID="ddlVozac4" runat="server" Height="25px" Width="180px" Enabled="false" AutoPostBack="true"></asp:DropDownList>
                    <br />
                    <asp:DropDownList ID="ddlVozac5" runat="server" Height="25px" Width="180px" Enabled="false" AutoPostBack="true"></asp:DropDownList>
                    <br />
                    <asp:DropDownList ID="ddlVozac6" runat="server" Height="25px" Width="180px" Enabled="false" AutoPostBack="true"></asp:DropDownList>
                    <br />
                    <br />
                    <asp:DropDownList ID="ddlPolPozicija" runat="server" Height="25px" Width="180px" Enabled="false" AutoPostBack="true"></asp:DropDownList>
                    <br />
                    <asp:DropDownList ID="ddlNajbrziKrug" runat="server" Height="25px" Width="180px" Enabled="false" AutoPostBack="true"></asp:DropDownList>
                    <br />
                    <br />
                    <asp:Button ID="btnUnesi" runat="server" Text="Unesi podatke" OnClick="btnUnesi_Click" Enabled="false" />
                    <br />
                </div>
                <asp:Label ID="lblInfoOUnosu" runat="server" Visible="false"></asp:Label>
            </asp:Panel>
        </div>

        <div id="centralniDiv" runat="server">
            <asp:Label ID="lblIshodTrke" runat="server" Height="30px" Width="200px" Text="Unos ishoda trke:"></asp:Label>
            <div id="centralniDivManji">
                <asp:Panel ID="panelAdmin" runat="server" Visible="true">
                    <asp:DropDownList ID="ddlIshodVozac1" runat="server" Height="25px" Width="180px" Enabled="false" AutoPostBack="true"></asp:DropDownList>
                    <br />
                    <asp:DropDownList ID="ddlIshodVozac2" runat="server" Height="25px" Width="180px" Enabled="false" AutoPostBack="true"></asp:DropDownList>
                    <br />
                    <asp:DropDownList ID="ddlIshodVozac3" runat="server" Height="25px" Width="180px" Enabled="false" AutoPostBack="true"></asp:DropDownList>
                    <br />
                    <asp:DropDownList ID="ddlIshodVozac4" runat="server" Height="25px" Width="180px" Enabled="false" AutoPostBack="true"></asp:DropDownList>
                    <br />
                    <asp:DropDownList ID="ddlIshodVozac5" runat="server" Height="25px" Width="180px" Enabled="false" AutoPostBack="true"></asp:DropDownList>
                    <br />
                    <asp:DropDownList ID="ddlIshodVozac6" runat="server" Height="25px" Width="180px" Enabled="false" AutoPostBack="true"></asp:DropDownList>
                    <br />
                    <br />
                    <asp:DropDownList ID="ddlIshodPolPozicija" runat="server" Height="25px" Width="180px" Enabled="false" AutoPostBack="true"></asp:DropDownList>
                    <br />
                    <asp:DropDownList ID="ddlIshodNajbrziKrug" runat="server" Height="25px" Width="180px" Enabled="false" AutoPostBack="true"></asp:DropDownList>
                    <br />
                    <br />
                    <asp:Button ID="btnUnesiIshod" runat="server" Text="Unesi ishod trke" Enabled="false" />

                </asp:Panel>
            </div>
        </div>

        <div id="desniDiv" runat="server">
            <asp:Label ID="lblRezultatiKladjenja" runat="server" Height="30px" Width="200px" Text="Rezultati kladjenja:"></asp:Label>
            <div id="desniDivManji">
                <asp:Button ID="btnIzracunaj" runat="server" Text="Izracunaj" OnClick="btnIzracunaj_Click" Enabled="false" /><br />
                <asp:ListBox ID="lbRezultati" runat="server"></asp:ListBox>

                <%--<asp:TextBox ID="txtBodovi" runat="server"></asp:TextBox><br />--%>
            </div>
        </div>

        <div id="desniDivBrisanje" runat="server">
            <asp:Panel ID="panelBrisanje" runat="server">
                <asp:Label ID="lblBrisanje" runat="server" Height="30px" Width="200px" Text="Brisanje tiketa:"></asp:Label>
                <div id="desniDivBrisanjeManji" runat="server">
                    <asp:DropDownList ID="ddlKladionicariKojiSuSeKladili" runat="server" Height="25px" Width="180px" Enabled="false" AutoPostBack="true"  ></asp:DropDownList>
                    <br />
                    <br />
                    <asp:Button ID="btnObrisiTiket" runat="server" Enabled="false" Text="Obrisi tiket" OnClick="btnObrisiTiket_Click" />
                </div>
                <div id="divLblInfoOBrisanju" runat="server" visible="false">
                    <asp:Label ID="lblInfoOBrisanju" runat="server" Visible="false"></asp:Label>
                </div>
            </asp:Panel>

            <asp:Label ID="lblPregledTiketa" runat="server" Height="30px" Width="200px" Text="Pregled tiketa:"></asp:Label>
            <div id="desniDivPregledTiketa" runat="server">
                <div id="desniDivPregledTiketaManji" runat="server">
                    <asp:DropDownList ID="ddlPregledTiketa"  runat="server" Height="25px" Width="180px" Enabled="true" AutoPostBack="true" OnSelectedIndexChanged="ddlPregledTiketa_SelectedIndexChanged"></asp:DropDownList>
                    <%--<asp:Label ID="lblTiketTamnija" runat="server" Height="30px" Width="200px" Text="Pregled tiketa:"></asp:Label>
                <asp:Label ID="lblTiketSetvlija" runat="server" Height="30px" Width="200px" Text="Pregled tiketa:"></asp:Label>--%>
                    <br />

                </div>
            </div>
        </div>



        <div id="divLabelaStatus" runat="server">
            <asp:Label ID="lblStatus" runat="server" Height="30px" Width="200px" Text=""></asp:Label>
        </div>
        <div id="divStatus" runat="server">
            <asp:Panel ID="panelStatus" runat="server">
                <asp:TextBox ID="txtStatuSifra" runat="server"></asp:TextBox>
                <asp:DropDownList ID="ddlStatus" runat="server" Height="25px" Width="80px" AutoPostBack="true">
                    <asp:ListItem>Otkljucaj</asp:ListItem>
                    <asp:ListItem>Zakljucaj</asp:ListItem>
                </asp:DropDownList>

                <asp:Button ID="btnStatus" runat="server" Text="Otklj./Zakjl." OnClick="btnStatus_Click" />
            </asp:Panel>
        </div>
    </form>



    <div id="footer">2012 - Tamo neki dr. mr.</div>
</body>
</html>
